<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
    <title>IOT节点管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-form" style="padding: 20px 15px 0 0;" wid100>
 	<input type="hidden" name="id" value="$!{id}"/>
 	<input type="hidden" name="iotType" value="$!{iotType}"/>
    <div class="layui-form-item">
      <label class="layui-form-label">节点名称</label>
      <div class="layui-input-block">
        <input type="text" name="name" lay-verify="required" autocomplete="off" class="layui-input" value="$!{name}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">阿里云节点</label>
      <div class="layui-input-block">
        <input type="text" name="regionId" lay-verify="required"  autocomplete="off" class="layui-input" value="$!{regionId}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">账号KEY</label>
      <div class="layui-input-block">
        <input type="text" name="accessKey" autocomplete="off" class="layui-input" value="$!{accessKey}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">账号密钥</label>
      <div class="layui-input-block">
        <input type="text" name="accessSecret" autocomplete="off" class="layui-input" value="$!{accessSecret}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">产品KEY</label>
      <div class="layui-input-block">
        <input type="text" name="productKey" lay-verify="required"  autocomplete="off" class="layui-input" value="$!{productKey}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">产品密钥</label>
      <div class="layui-input-block">
        <input type="text" name="productSecret" lay-verify="required" autocomplete="off" class="layui-input" value="$!{productSecret}">
      </div>
    </div>
    <div class="layui-form-item">
		<label class="layui-form-label">连接方式</label>
	    <div class="layui-input-block">
	      	<select name="linkType" lay-verify="required">
	      		#foreach($item in $linkTypeList)
				<option value="$!{item.index()}" ${utils.eq($linkType,$item.index(),'selected')}>$!{item.note()}</option>
				#end
	      	</select>
     	</div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">MNS连接点</label>
      <div class="layui-input-block">
      	<input type="text" name="accountEndpoint" placeholder="请输入阿里云MNS服务连接点"  autocomplete="off" class="layui-input" value="$!{accountEndpoint}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">账号UID</label>
      <div class="layui-input-block">
      	<input type="text" name="uid" placeholder="请输入阿里云账号的UID"  autocomplete="off" class="layui-input" value="$!{uid}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">MNS服务队列</label>
      <div class="layui-input-block">
      	<input type="text" name="queueName" placeholder="请输入阿里云MNS服务队列名称"  autocomplete="off" class="layui-input" value="$!{queueName}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">APN</label>
      <div class="layui-input-block">
        <input type="text" name="apn" autocomplete="off" class="layui-input" value="$!{apn}">
      </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
      <input type="button" lay-submit lay-filter="LAY-form-update" id="LAY-form-update" value="修改">
    </div>
  </div>
#parse('/footFiles.html')
<script type="text/javascript">
layui.config({
  base: '$!{webRoot}/layuiadmin/'
}).extend({
  index: 'lib/index'
}).use(['index', 'form'], function(){
  var $ = layui.$,form = layui.form;
});
</script>
</body>
</html>